<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <link href="/Show/Admin/Public/css/news.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="/Show/Admin/Public/ckeditor/ckeditor.js"></script>
    <title>发布新闻</title>
  </head>
  <body>
    <form action=#"" method="post" enctype="multipart/form-data">
    <div class="mainbox">
          <div class="title">&nbsp;&nbsp;发布新闻</div>
          <div class="tablebox">
            <table class="table" border="0">
              <tr>
                <td class="tdl">新闻类型</td>
                <td class="tdr">
                  <select name="n_id">
                  {section name=n loop=$news_class}
                  <option value="{$news_class[n].id}">{$news_class[n].name}</option>
                  {/section}
                  </select>
                </td>
              </tr>
              <tr>
                <td class="tdl">新闻标题</td>
                <td class="tdr">
                  <input type="text" name="title" >
                  <input type="hidden" name="author" value="{$smarty.session.admin_name}">
                </td>
              </tr>
              <tr>
                <td class="tdl">关键字</td>
                <td class="tdr">
                  <input type="text" name="key_work" > 
                  /**在导航条二级显示**/
                </td>
              </tr>
              <tr>
                <td class="tdl">封面图片</td>
                <td class="tdr">
                  <input type="file" name="picture" >                
                </td>
              </tr>
              <tr>
                <td class="tdl">属性</td>
                <td class="tdr">
                    <input type="checkbox" name="index_round" value="1">首页轮播&nbsp;
                    <input type="checkbox" name="news_round" value="1">新闻页轮播&nbsp;
                </td>
              </tr>
              <tr>
                  <td>排序时间</td>
                  <td>
                      <input type="text" name="sort">
                      /*可设置未来时间置顶，以前时间下沉，空则当前时间，格式为 2017-2-15 13:20:10*/
                  </td>
              </tr>
              <tr>
                <td class="tdl">新闻内容</td>
                <td class="tdr">
                  <textarea id="textarea" name="contents" ></textarea>
                  <script type="text/javascript">CKEDITOR.replace('textarea');</script>
                </td>
              </tr>
              <tr>
                <td class="tdr sub" colspan="2">
                  <input type="submit" name="sub" value="确定">
                  <input id="reset" type="reset"  value="重置">
                </td>
              </tr>
            </table>
          </div>
    </div>
    </form>
  </body>
</html>